<template>
    <p v-html="str"></p>
    <p v-text="str"></p>
</template>

<script setup>
    import {ref} from 'vue'
    const str = ref('<span style="color:red">hello, vue3+vite</span>')
</script> 

<style scoped>

</style>